#ifndef APPLICATION_H
#define APPLICATION_H

#include "Window.h"
#include "DeviiMath.h"

using namespace devii;

const int NR_OF_KEYS = 600;

class Application : public Window
{
public:
	Application();
	~Application();
	Application(unsigned int width, unsigned int height);

	void update(float dt);
	int run();

	int runDX();
	void kill();

	void onInput( int key, KeyState state, InputDevice input, LPARAM lpar );
	void onMouseMovement( float x, float y );
private:
	bool keys[NR_OF_KEYS];
	bool alive;
	float2 oldMousePos;
	float2 current;
};

#endif